Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server.py: remove '<pool>.<group>' from metadata id #1080

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

VallariAg
Copy link
Member

@VallariAg VallariAg commented Feb 3, 2025

In service_map registeration, shorten "id" by
removing rbd pool name and gw group name.

Before: "id": "mypool.mygroup1.ceph-nvme-vm8.fntlci"
After: "id": "ceph-nvme-vm8.fntlci"

This helps to display short gateway names in "ceph -s" output. Exmaple:

    nvmeof (mygroup1) : 2 gateways active (ceph-nvme-vm13.azfdpk, ceph-nvme-vm14.hdsoxl)
    nvmeof (mygroup2) : 2 gateways active (ceph-nvme-vm11.hnooxs, ceph-nvme-vm12.wcjcjs)

Related PR: ceph/ceph#61624

Copy link
Collaborator

@baum baum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. How gateway groups (group_name,pool1) and (group_name.pool2), i.e. with the same group name, but different pools, would be displayed? Could we use service id in the parentheses?

Would the following make sense?

    nvmeof (mypool.mygroup1) : 2 gateways active (ceph-nvme-vm13.azfdpk, ceph-nvme-vm14.hdsoxl)
    nvmeof (mypool.mygroup1) : 2 gateways active (ceph-nvme-vm11.hnooxs, ceph-nvme-vm12.wcjcjs)

@VallariAg
Copy link
Member Author

@baum that sounds good to me! What do you think, @caroav?

Copy link
Collaborator

@baum baum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 🖖

In service_map registeration, shorten "id" by
removing rbd pool name and gw group name.

Before: `"id": "mypool.mygroup1.ceph-nvme-vm8.fntlci"`
After: `"id": "ceph-nvme-vm8.fntlci"`

This helps to display short gateway names in "ceph -s"
output. Exmaple:
```
    nvmeof (mypool.mygroup1): 2 gateways: 1 active (ceph-nvme-vm30.kkcfux)
    nvmeof (mypool.mygroup2): 2 gateways: 2 active (ceph-nvme-vm28.mfqucr, ceph-nvme-vm29.hrizzl)
```

Signed-off-by: Vallari Agrawal <[email protected]>
@VallariAg VallariAg force-pushed the shorten-metadata-id branch from 9b54f4f to 23caef4 Compare February 6, 2025 05:16
@VallariAg VallariAg merged commit fd260b1 into ceph:devel Feb 6, 2025
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants